var template_= `<div>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item v-for="item in routerList" :key="item.path" >{{item.meta.title}}</el-breadcrumb-item>   
    </el-breadcrumb>
</div>`
// 需要这种方式导入(table.js) pagination : () => import('../components/pagination.js')
export default {
    name:'MyBreadcrumb',
    data() {
        return{
            routerList:''
        }
    },
    methods: {

    },
    watch:{
        $route(to,from){
            this.routerList=to.matched;
        }
    },
    mounted(){
        this.routerList=this.$route.matched
        console.log("--routerList",this.routerList)
    },
    template:template_,
};

